package com.avengers.mobile.testing;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;



import com.avengers.mobile.layer.rest.ClienteRest;


@Transactional
public class ClientesTesting extends AbstractBaseUnitTest {

	
	
	@Autowired
	ClienteRest restCliente;

	@Test
	public void test() {		
		testingRestClientefindClienteList();	
		testingRestClientefindCliente();
		
	}
	
	
	public void testingRestClientefindClienteList(){
		
		try {		
			System.out.println(restCliente.findClienteList().getEntity());		
			} catch (Exception e) {			
				e.printStackTrace();
			}
	}
	
	public void testingRestClientefindCliente(){
		
		try {		
			System.out.println(restCliente.find(1).getEntity());		
			} catch (Exception e) {			
				e.printStackTrace();
			}
	}

}
